#ifndef AVATARREQUESTTASK_H_
#define AVATARREQUESTTASK_H_

#include "Task.h"
#include "../../../core/Buddy.h"

namespace Impp
{

class AvatarRequestTask : public Task
{
private:
	Buddy* buddy;
	bool requestSent;
	bool error;
	ActionId actionId;
		
public:
	AvatarRequestTask(Oscar* oscar, Buddy* buddy, const ActionId & id);
	virtual ~AvatarRequestTask();
	ActionId getActionId();
	
private:
	void sendRequest();
	bool checkForTimeOut(const time_t & now);
	virtual void timedOut();
};

}

#endif /*AVATARREQUESTTASK_H_*/
